import { request} from './requests.js'
//用户登录
export function login(data) {
	return request({
		url: 'bhUser/getWxUserInfo?code='+data,
		method: 'GET',
	})
}
//医生登录
export function dcLogin(data) {
	return request({
		url: 'bhPcUser/pcLogin',
		method: 'POST',
		data
	})
}
//获取当前医生聊天列表
export function messageByDoctor() {
	return request({
		url: 'bhDoctor/findMessageSByDoctor',
		method: 'GET',
	})
}
//验证码
export function captchaImage() {
	return request({
		url: 'captchaImage',
		method: 'GET',
	})
}
//获取所有专家
export function findAllSpecialist(data) {
	return request({
		url: 'bhFrontData/findAllSpecialist',
		method: 'GET',
		data
	})
}
//知识普及
export function findAllKnowledge(data) {
	return request({
		url: 'bhFrontData/findAllKnowledge',
		method: 'GET',
		data
	})
}
//健康监测
export function findHealthMonitor(data) {
	return request({
		url: 'bhFrontData/findHealthMonitor',
		method: 'GET',
		data
	})
}
//查询当前咨询医生
export function findAllDoctor() {
	return request({
		url: 'bhFrontData/findAllDoctor',
		method: 'GET',
	})
}
//查询所有医院
export function findAllHospital() {
	return request({
		url: 'bhFrontData/findAllHospital',
		method: 'GET',
	})
}
//医院-科室 
export function trativeOfficeByHospital(data) {
	return request({
		url: 'bhFrontData/findAllAdministrativeOfficeByHospital?id='+data,
		method: 'GET',
	})
}
//新增就诊信息 
export function addMessageData(data) {
	return request({
		url: 'bhFrontData/addBhBooked',
		method: 'POST',
		data
	})
}
//查询就诊检查信息 type=0就诊 1检查
export function findBhBookedByUser(data) {
	return request({
		url: 'bhFrontData/findBhBookedByUser?type='+data,
		method: 'GET',
	})
}
//就诊人员信息
export function findClinicMessageByUser() {
	return request({
		url: 'bhFrontData/findClinicMessageByUser',
		method: 'GET',
	})
}
//新增和修改就诊人员信息
export function addClinicMessage(data) {
	return request({
		url: 'bhFrontData/addClinicMessage',
		method: 'POST',
		data
	})
}
//查询医生-用户聊天记录 pageNum=1&pageSize=1&userId=21
export function findUserChatData(data) {
	return request({
		url: 'bhDoctor/findUserChatData',
		method: 'GET',
		data
	})
}
//查询用户-医生聊天记录 pageNum=1&pageSize=1&userId=21
export function findDoctorChatData(data) {
	return request({
		url: 'bhFrontData/findUserChatData',
		method: 'GET',
		data
	})
}
//查询指定用户健康数据 userId=1&type=血压
export function findHealthMonitorByUserId() {
	return request({
		url: 'bhDoctor/findHealthMonitorByUserId',
		method: 'GET',
	})
}




